<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * CodeIgniter
 *
 * An open source application development framework for PHP 5.2.4 or newer
 *
 * NOTICE OF LICENSE
 *
 * Licensed under the Academic Free License version 3.0
 *
 * This source file is subject to the Academic Free License (AFL 3.0) that is
 * bundled with this package in the files license_afl.txt / license_afl.rst.
 * It is also available through the world wide web at this URL:
 * http://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to obtain it
 * through the world wide web, please send an email to
 * licensing@ellislab.com so we can send you a copy immediately.
 *
 * @package		CodeIgniter
 * @author		EllisLab Dev Team
 * @copyright	Copyright (c) 2008 - 2013, EllisLab, Inc. (http://ellislab.com/)
 * @license		http://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
 * @link		http://codeigniter.com
 * @since		Version 1.0
 * @filesource
 */

/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There are two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router which controller/method to use if those
| provided in the URL cannot be matched to a valid route.
|
*/

$route['404_override'] = '';
$route['auth'] = 'users/auth';
$route['auth/(.*)'] = 'users/auth/$1';

// public Routes

$route['default_controller'] = 'welcome';
//$route['dump/(:any)/(:any)'] = "dump/$1/$2";

//--MEMBER MODULE




$route['member/(:any)/(:any)'] = "member/$1/$2";
//$route['member/business/(:any)'] = "member/business/$1";

$route['member/(:any)'] = "member/$1";
$route['member/out'] = "member/login/out";



//--SEARCH --//
$route['search/(.*)'] = "browse/search/$1";

//--LOCATION SET --//
$route['browse/location/set_location'] = "browse/location/set_location";
$route['browse/location/set'] = "browse/location/set";
$route['browse/location/clear_location'] = "browse/location/clear_location";
$route['browse/location/clear_city'] = "browse/location/clear_city";
//$route['member/business/validate'] = "member/business/validate";

//--PROFILE--//
$route['profile/claim_submit'] = "browse/profile/claim_submit";
$route['profile/report_submit'] = "browse/profile/report_submit";
$route['profile/email_submit'] = "browse/profile/email_submit";
//--PROFILE--//

$route['browse/category/autocomplete'] = "browse/category/autocomplete";
$route['browse/search/business_search'] = "browse/search/business_search";
$route['browse/location/city_search'] = "browse/location/city_search";
$route['category/all'] = "browse/category/all";
$route['location/all'] = "browse/location/all";
$route['city/all'] = "browse/location/city";


//--ADMIN--//
$route['secure/dashboard'] = "secure/dashboard";
$route['secure/settings/(:any)'] = "secure/settings/$1";
$route['secure/category/(:any)'] = "secure/category/$1";
$route['secure/listing/(:any)'] = "secure/listing/$1";
$route['secure/paypal/(:any)'] = "secure/paypal/$1";
$route['secure/payment/(:any)'] = "secure/payment/$1";
$route['secure/membership/(:any)'] = "secure/membership/$1";
$route['secure/facebookpage/(:any)'] = "secure/facebookpage/$1";
$route['secure/member/password_change'] = "secure/member/password_change";
$route['secure'] = "secure/member/login";
$route['secure/member/login'] = "secure/member/login";
$route['secure/member/logout'] = "secure/member/login/logout";




$route['business/(:any)'] = "browse/search/business/$1";
$route['business/(:any)/(:any)'] = "browse/search/business/$1/$2";

$route['keyword/(:any)'] = "browse/search/keyword/$1";
$route['keyword/(:any)/(:any)'] = "browse/search/keyword/$1/$2";

$route['(:any)/(:any)/(:any)'] = "browse/index/$1/$2/$3";
$route['(:any)/(:any)'] = "browse/index/$1/$2";
$route['(:any)'] = "browse/index/$1";


//$route['(:any)/(:any)/(:any)'] = "browse/index/$1/$2/$3";
//$route['(:any)/(:any)'] = "browse/index/$1/$2";
//$route['(:any)'] = "browse/index/$1";


/* End of file routes.php **/
/* Location: ./application/config/routes.php */
